package com.app.medicalcontrol.bean;

import com.app.medicalcontrol.R;

public class Robot extends BasisBean {

//数据采集  2018-08-31   10:39
//    {
//        "right": {
//        "hardware_status": 1,
//                "type": 1,
//                "work_status": 1
//    },
//        "name": "小米平板",
//            "left": {
//        "hardware_status": 1,
//                "type": 0,
//                "work_status": 1
//    },
//        "right_hand_id": 14,
//            "start_status": 0,
//            "left_hand_id": 13
//    }

    public static int START = 1, CLOSE = 0;
    private int start_status;   //	启动状态（0.关闭 1.启动）

    //    public static int WIFISTART = 1,WIFICLOSE = 0;
    private int is_wifi;  //是否连接wifi（0.未连接 1.已连接)

    //    public static int BLUESTART = 1,BLUECLOSE = 0;
    private int is_bluetooth;  //是否连接蓝牙（0.未连接 1.已连接）

    private int hardware_status;  //硬件状态（0.不正常 1.正常）

    private int work_status;  //工作状态（0.关闭 1.服务中）

    private int store_id;
    private String number;
    private int robot_id;
    private int right_hand_id;

    public int getHardware_status() {
        return hardware_status;
    }

    public void setHardware_status(int hardware_status) {
        this.hardware_status = hardware_status;
    }

    public int getWork_status() {
        return work_status;
    }

    public void setWork_status(int work_status) {
        this.work_status = work_status;
    }

    public int getStart_status() {
        return start_status;
    }

    public void setStart_status(int start_status) {
        this.start_status = start_status;
    }

    public int getIs_wifi() {
        return is_wifi;
    }

    public void setIs_wifi(int is_wifi) {
        this.is_wifi = is_wifi;
    }

    public int getIs_bluetooth() {
        return is_bluetooth;
    }

    public void setIs_bluetooth(int is_bluetooth) {
        this.is_bluetooth = is_bluetooth;
    }

    public int getStore_id() {
        return store_id;
    }

    public void setStore_id(int store_id) {
        this.store_id = store_id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getRobot_id() {
        return robot_id;
    }

    public void setRobot_id(int robot_id) {
        this.robot_id = robot_id;
    }

    public int getRight_hand_id() {
        return right_hand_id;
    }

    public void setRight_hand_id(int right_hand_id) {
        this.right_hand_id = right_hand_id;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getBluetooth_name() {
        return bluetooth_name;
    }

    public void setBluetooth_name(String bluetooth_name) {
        this.bluetooth_name = bluetooth_name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWifi_name() {
        return wifi_name;
    }

    public void setWifi_name(String wifi_name) {
        this.wifi_name = wifi_name;
    }

    public int getCover_id() {
        return cover_id;
    }

    public void setCover_id(int cover_id) {
        this.cover_id = cover_id;
    }

    public int getLeft_hand_id() {
        return left_hand_id;
    }

    public void setLeft_hand_id(int left_hand_id) {
        this.left_hand_id = left_hand_id;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    private String cover;
    private String bluetooth_name;
    private String name;
    private String wifi_name;
    private int cover_id;
    private int left_hand_id;
    private long create_time;
    private String type;
    private Right right;
    private Left left;

    public Right getRight() {
        return right;
    }

    public void setRight(Right right) {
        this.right = right;
    }

    public Left getLeft() {
        return left;
    }

    public void setLeft(Left left) {
        this.left = left;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean checkFromInt(int status) {
        return (status == 1) ? true : false;
    }

    public String startOrCloseFromInt(int status) {
        return (status == 1) ? "启动" : "未启动";
    }

    public String wareStatusFromInt(int status) {
        return (status == 1) ? "硬件正常" : "硬件故障";
    }

    public String serverStatusFromInt(int status) {
        return (status == 1) ? "服务中" : "空闲中";
    }

    public static class Right extends BasisBean {
        private int hardware_status;
        private int type;
        private int work_status;
        public int getHardware_status() {
            return hardware_status;
        }

        public void setHardware_status(int hardware_status) {
            this.hardware_status = hardware_status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getWork_status() {
            return work_status;
        }

        public void setWork_status(int work_status) {
            this.work_status = work_status;
        }
    }

    public static class Left extends BasisBean {
        private int hardware_status;
        private int type;
        private int work_status;
        public int getHardware_status() {
            return hardware_status;
        }

        public void setHardware_status(int hardware_status) {
            this.hardware_status = hardware_status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getWork_status() {
            return work_status;
        }

        public void setWork_status(int work_status) {
            this.work_status = work_status;
        }
    }
}
